$(function(){
	var cityId;
	//bj
	var data1={
		startingPrice:"8元/km",
		price1:"1.1元/km",
		price2:"1元/km"
	}
	//ts/qt
	var data2={
		startingPrice:"4元/km",
		price1:"1元/km",
		price2:"0.8元/km"
	}
	var tpl = document.getElementById("tpl").innerHTML;
	var html = juicer(tpl,data1);
	$(".border-container").html(html);
	
	$(".showCityDiv").on("click",function(){
		$("ul").slideToggle();
	});
	
	$("ul button").on("click",function(){
		var text = $(this).text();
		cityId = $(this).attr("data-cityId");
		if(cityId == "1"){
			var html = juicer(tpl,data1);
			$(".border-container").html(html);
			$(".cityname-left").text(text);
			$("ul").slideUp();
		}
		if(cityId == "2"){
			var html = juicer(tpl,data2);
			$(".border-container").html(html);
			$(".cityname-left").text(text);
			$("ul").slideUp();
		}
		if(cityId == "3"){
			var html = juicer(tpl,data2);
			$(".border-container").html(html);
			$(".cityname-left").text(text);
			$("ul").slideUp();
		}
	});
});
